package me.zingon.doc.service;

import me.zingon.doc.exception.ServiceException;
import me.zingon.doc.model.User;
import java.util.List;

/**
* Created by ZTCGenerator<zingon@aliyun.com> on 2018-5-31.
*/
public interface UserService {

    int insert(User user);

    int delete(User user);

    int deleteByIds(Integer[] ids);

    int update(User user);

    User getById(Integer id);

    List<User> list(User user);

    String login(String loginName, String password) throws ServiceException;

    int checkNickname(String nickname);

    int checkEmail(String loginName);

    int register(User user);

    int activeUser(String token) throws ServiceException;
}